import { Module } from "@nestjs/common"
import { NameGenerationService } from "./nameGeneration.service"
import { NameGenerationController } from "./nameGeneration.controller"
// import { babyForm } from "@/entity/form/form.entiy"
// import { User } from "@/entity/users/user.entity"
import { TypeOrmModule } from "@nestjs/typeorm"
import { RateLimiterModule } from 'nestjs-rate-limiter';

@Module({
    imports: [
        TypeOrmModule.forFeature([]),
        RateLimiterModule.register({
            points: 10, // 每60秒只允许10次请求
            duration: 60,
          }),
    ],
    providers: [NameGenerationService],
    controllers: [NameGenerationController]
})
export class NameGenerationModule{}
